package com.traceability.trace.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.traceability.common.annotation.Excel;
import com.traceability.common.core.domain.BaseEntity;

/**
 * 销售信息管理对象 sales
 * 
 * @author xulin
 * @date 2025-01-09
 */
public class Sales extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long saleId;

    /** 农产品 */
    @Excel(name = "农产品")
    private Long productId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 销售日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleDate;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long quantitySold;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private String salePrice;

    public void setSaleId(Long saleId) 
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setSaleDate(Date saleDate) 
    {
        this.saleDate = saleDate;
    }

    public Date getSaleDate() 
    {
        return saleDate;
    }
    public void setQuantitySold(Long quantitySold) 
    {
        this.quantitySold = quantitySold;
    }

    public Long getQuantitySold() 
    {
        return quantitySold;
    }
    public void setSalePrice(String salePrice)
    {
        this.salePrice = salePrice;
    }

    public String getSalePrice()
    {
        return salePrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saleId", getSaleId())
            .append("productId", getProductId())
            .append("customerName", getCustomerName())
            .append("saleDate", getSaleDate())
            .append("quantitySold", getQuantitySold())
            .append("salePrice", getSalePrice())
            .toString();
    }
}
